From 28095641c5779a042f6508bee99416fe09c9073a Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 19 Nov 2020 12:14:55 +0000 Subject: [PATCH] a11y: Use the appropriate GVariant for cache signals We need to wrap the argument for AddAccessible and RemoveAccessible into a tuple, as that's what GDBus expects. --- gtk/a11y/gtkatspicache.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/a11y/gtkatspicache.c b/gtk/a11y/gtkatspicache.c index 31172d2cb6..880a64cc5c 100644 --- a/gtk/a11y/gtkatspicache.c +++ b/gtk/a11y/gtkatspicache.c @@ -185,7 +185,8 @@ emit_add_accessible (GtkAtSpiCache *self, self->cache_path, "org.a11y.atspi.Cache", "AddAccessible", - g_variant_builder_end (&builder), + g_variant_new ("(@(" ITEM_SIGNATURE "))", + g_variant_builder_end (&builder)), NULL); } @@ -198,7 +199,7 @@ emit_remove_accessible (GtkAtSpiCache *self, self->cache_path, "org.a11y.atspi.Cache", "RemoveAccessible", - ref, + g_variant_new ("(@(so))", ref), NULL); } -- 2.30.2